package org.jeecg.modules.friends.service.impl;

import java.util.List;
import java.util.concurrent.locks.Condition;

import org.jeecg.modules.friends.condition.UserPicsCondition;
import org.jeecg.modules.friends.dao.UserPicsDAO;
import org.jeecg.modules.friends.model.UserPicsDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserPicsServiceImpl implements org.jeecg.modules.friends.service.UserPicsService {
    @Autowired
    private UserPicsDAO userPicsDAO;


    @Override
    public List<UserPicsDO> findByPage() {
        UserPicsCondition userPicsCondition = new UserPicsCondition();
        UserPicsCondition.Criteria criteria = userPicsCondition.createCriteria();
        criteria.andIdGreaterThan(2008L);
        return userPicsDAO.queryByCondition(userPicsCondition);
    }

    @Override
    public long countByParam() {
        return 0;
    }

    @Override
    public void update(UserPicsDO userPicsDO) {
        userPicsDAO.update(userPicsDO);
    }
}